void OnAbduction(Character character)
    {
        print("ABDUCTION" + character);

        id++;
        if (id > 5)
        {
            id = 0;
        }
        Explotion newExplotion = Instantiate(explotion);

        newExplotion.transform.position = character.transform.position;
        newExplotion.Init(id);
    }
示例#2
0
    void OnAddExplotion(Vector3 pos)
    {
        Explotion new_explotion = Instantiate(explotion);

        new_explotion.Init(pos);
    }