Пример #1
0
    // Use this for initialization
    void Start()
    {
        player = this.gameObject.GetComponent <SimplePlatformPlayer3d>();
        // player.gameStateManager.left.myHero = player;
        // player.gameStateManager.right.myHero = player;

        // player.gameStateManager.shootLeft.myHero = player;
        // player.gameStateManager.shootRight.myHero = player;
    }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     player = this.gameObject.GetComponent <SimplePlatformPlayer3d>();//get default character controller
     rb     = this.GetComponent <Rigidbody>();
 }