Exemplo n.º 1
0
 void Start()
 {
     isMove       = true;
     sprite       = gameObject.transform.GetChild(0).gameObject;
     enemVis      = GetComponent <EnemyVisibility>();
     enemyManager = GetComponent <EnemyManager>();
     wallCheck    = gameObject.AddComponent <RayChecker>();
 }
Exemplo n.º 2
0
    //Primary

    // Use this for initialization
    void Start()
    {
        bMoving   = false;
        bRotating = false;
        rayCheck  = GetComponent <RayChecker>();
    }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     rayChecker = raycaster.GetComponent <RayChecker>();
     hinge      = door.GetComponent <HingeJoint>();
     hinger     = hinge.spring;
 }