// Use this for initialization void Start() { if (typeIA == TypeIA.ia1) { _actualIA = IAStats.FIRST_IA; } if (typeIA == TypeIA.ia2) { _actualIA = IAStats.SECONDE_IA; } _rigidbody = Myself.GetComponent <Rigidbody2D>(); _playerRigibody = Player.GetComponent <Rigidbody2D>(); Debug.Log(_playerRigibody); platformerChar = Player.GetComponent <Platformer.Character.PlatformerCharacter>(); _playerColl = Player.GetComponent <Collider2D>(); //_mySkin = transform.GetComponentInParent<SpriteRenderer>(); }
// Use this for initialization void Start() { if (typeIA == TypeIA.ia1) _actualIA = IAStats.FIRST_IA; if (typeIA == TypeIA.ia2) _actualIA = IAStats.SECONDE_IA; _rigidbody = Myself.GetComponent<Rigidbody2D>(); _playerRigibody = Player.GetComponent<Rigidbody2D>(); Debug.Log(_playerRigibody); platformerChar = Player.GetComponent<Platformer.Character.PlatformerCharacter>(); _playerColl = Player.GetComponent<Collider2D>(); //_mySkin = transform.GetComponentInParent<SpriteRenderer>(); }