Пример #1
0
    public override bool Initialize(GameObject gameObject)
    {
        arcaneObject = gameObject.GetComponent <ArcaneObject>();

        if (arcaneObject == null)
        {
            return(false);
        }

        return(base.Initialize(gameObject));
    }
Пример #2
0
    public override bool Initialize(GameObject gameObject)
    {
        this.arcaneObject = gameObject.GetComponent <ArcaneObject>();

        return(arcaneObject != null && base.Initialize(gameObject));
    }