Esempio n. 1
0
 private void Awake()
 {
     CrafterScript     = GameObject.Find("character2").GetComponent <Crafter>();
     RightCanon        = GameObject.Find("Canon");
     LeftCanon         = GameObject.Find("Canon (1)");
     outLine           = transform.GetComponent <COutLine>();
     hint              = transform.Find("hint").GetComponent <SpriteRenderer>();
     hint.enabled      = false;
     CraftSystemScript = CrafterScript.GetComponentInChildren <CraftSystem>();
     //Debug.Log(GameObject.Find("CraftSystem").GetComponent<CraftSystem>());
     //Debug.Log("CraftSystemScript:  " + CraftSystemScript);
 }