示例#1
0
    void PickStalker()
    {
        // Get someone from the list to be the target
        int            nStalkerIdx          = Random.Range(0, goAllPersonInTheLevel.Length);
        PersonBehavior personBehaviorScript = goAllPersonInTheLevel[nStalkerIdx].GetComponent <PersonBehavior>();

        personBehaviorScript.typePersonBehavior = TypePersonBehavior.Stalker;

        // Keep the stalker info
        PersonChangeMaterials personChangeScript = goAllPersonInTheLevel[nStalkerIdx].GetComponent <PersonChangeMaterials>();

        objectivesCardScript.SetStalkerInfo(personChangeScript.personColors);
    }