Inheritance: MonoBehaviour
示例#1
0
    private void Awake()
    {
        anim   = GetComponent <Animator>();
        rbody  = GetComponent <Rigidbody2D>();
        rendr  = GetComponent <SpriteRenderer>();
        player = GameController.Instance.Player;

        opossum = new baseCharacter();
        opossum.CharacterName = "Opposum";
    }
示例#2
0
    public baseCharacter eagle; //kalıtım

    void Awake()
    {
        eagle = new baseCharacter();
        eagle.CharacterName = "eagle";

        eagle.Health = 200;
        eagle.Damage = 5;

        GOCharacter = GameController.Instance.Player;
    }
示例#3
0
    void Awake()
    {
        anim  = GetComponent <Animator>();
        rbody = GetComponent <Rigidbody2D>();

        player = new baseCharacter();
        player.CharacterName = "Player";


        gameOver = false;
    }
示例#4
0
    void Awake()
    {
        barbarianKalitim = new baseCharacter();

        barbarianKalitim.Damage = 20f;

        barbarianKalitim.Health        = 60f;
        barbarianKalitim.CharacterName = "barbarian";
        BOOLAiRightGETSET = false;
        BOOLAiLeftGETSET  = false;
        GOPlayer          = GameController.Instance.Player.gameObject;
        ScaleOfStart      = transform.localScale;
        gameObject.transform.GetChild(1).gameObject.GetComponent <MeshRenderer>().sortingLayerName = "PlayerLayer";
    }
示例#5
0
 private void Awake()
 {
     wizard = new baseCharacter();
     wizard.CharacterName = "Cabbar-Wizard";
 }