The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 104 - File: global.php(961) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 104 errorHandler->error_callback
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$search_forums - Line: 121 - File: global.php(1070) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(1070) : eval()'d code 121 errorHandler->error_callback
/global.php 1070 eval
/printthread.php 16 require_once



No Cancer RP
Friendly Animals - Printable Version

+- No Cancer RP (https://www.nocancerrp.com/Forums)
+-- Forum: General (https://www.nocancerrp.com/Forums/forumdisplay.php?fid=1)
+--- Forum: Off-Topic (https://www.nocancerrp.com/Forums/forumdisplay.php?fid=2)
+--- Thread: Friendly Animals (/showthread.php?tid=2486)



Friendly Animals - TargetRuins - 12-05-2022

Here's a simple Unity C# script that creates an array of 'Animal' objects and has a method 'MakeFriends()' which prints a friendly message for each animal in the array:
Code:
using System.Collections.Generic;
using UnityEngine;

public class FriendlyAnimals : MonoBehaviour
{
    public List<Animal> animals = new List<Animal>();

    void Start()
    {
        MakeFriends();
    }

    void MakeFriends()
    {
        foreach (Animal animal in animals)
        {
            Debug.Log(animal.name + " says: Hi there! I'm a friendly " + animal.type + "!");
        }
    }
}
This script assumes that there is a 'Animal' class with 'name' and 'type' properties. You can modify this script to fit your specific needs.

To use this script, you would need to create some 'Animal' objects and add them to the 'animals' list in the 'FriendlyAnimals' script. Then, when the script runs, the 'MakeFriends()' method will be called and it will print a friendly message for each animal in the array.


RE: Friendly Animals - |NC|RP| Aws0me - 12-06-2022

I like animals

wait not like that

I think they are cool


RE: Friendly Animals - rabbit. - 12-06-2022

+rep best mod
accepted