Chaos.Change C# (CSharp) Méthode

Change() public méthode

public Change ( ) : void
Résultat void
    void Change()
    {
        //Debug.Log ("Change called!");
        //TODO: We can probably move this to the Awake() function
        //Transform[] allCrazies = crazyObjs.GetComponentsInChildren<Transform>();

        // mark objects as observed / not observed
        foreach (Transform t in allCrazies)
        {
            if(t.name == "CrazyObjs" || t.name == "ChaosTrigger")
                continue;

            ObjActions temp = t.gameObject.GetComponent<ObjActions>();
            temp.isObserved = WithinFOV(t.position);
        }
    }