Exemplo n.º 1
0
        private void Start()
        {
            physicsEngine         = GameObject.FindObjectOfType <PhysicsEngine>();
            localCollisionManager = GetComponent <LocalCollisionManager>();
            if (hasGrappler)
            {
                grappler = this.gameObject.GetComponentInChildren <Grappler>();
            }

            if (hasProjectileLauncher)
            {
                projectileLauncher = this.gameObject.GetComponentInChildren <ProjectileLauncher>();
            }
        }
Exemplo n.º 2
0
 void Start()
 {
     projectileLauncher = GetComponentInParent <ProjectileLauncher>();
     rb = GetComponentInParent <Rigidbody2D>();
 }