Пример #1
0
    void Awake()
    {
        if (instance != null)
        {
            Destroy(this);
        }
        else
        {
            instance = this;
        }

        actions = new BaseCharacterMovement(GetComponent <Rigidbody> (),
                                            GetComponent <Player> (),
                                            GetComponentInChildren <Animator>()
                                            );
    }
 private void Start()
 {
     bcmScript          = GetComponent <BaseCharacterMovement>(); //retrieve script
     m_baseRigidBody    = GetComponent <Rigidbody>();
     transform.position = new Vector3(155, 1, 200);
 }