// 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; }
// Use this for initialization void Awake() { player = this.gameObject.GetComponent <SimplePlatformPlayer3d>();//get default character controller rb = this.GetComponent <Rigidbody>(); }