예제 #1
0
        /****************
        *   METHODS
        ****************/

        void Awake()
        {
            if (mapChar == null)
            {
                mapChar = this;
            }
            rb = GetComponent <Rigidbody2D>();
            if (character == null)
            {
                Debug.LogError("No Character specified!");
            }
        }
 void Start()
 {
     //Battle();
     mapCharacter = MapCharacter.mapChar;
     if (mapCharacter == null)
     {
         Debug.Log("No MapCharacter instance found!");
     }
     NewBattle();
     SpawnCharacters();
     Invoke("SetFirstOption", .1f);
 }
        /******************
        *   METHODS
        ******************/


        private void Awake()
        {
            character = GetComponent <MapCharacter>();
        }